package com.woniu.coupon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 针对于某一个公寓的优惠券对象 tb_coupon_apart_ref
 * 
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "CouponApartRef", description = "针对于某一个公寓的优惠券")
public class CouponApartRef implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 公寓主键 */
    @Excel(name = "公寓主键")
    @ApiModelProperty("公寓主键")
    private Long apartmentId;

    /** 优惠券主键 */
    @Excel(name = "优惠券主键")
    @ApiModelProperty("优惠券主键")
    private Long couponId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("apartmentId", getApartmentId())
            .append("couponId", getCouponId())
            .toString();
    }
}
